﻿<Window x:Class="TestRenameInDomain.MainWnd"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Test Renaming Using NetRenameMachineInDomain Win32 API..." Height="298" Width="559">
    <Grid Height="256" Width="506">
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Label Height="28" HorizontalAlignment="Left" Margin="16,14,0,0" Name="label1" VerticalAlignment="Top" Width="62">Superuser:</Label>
        <TextBox Height="23" HorizontalAlignment="Left" Margin="92,19,0,0" Name="m_SuperuserTxtBox" VerticalAlignment="Top" Width="132" />
        <Label Height="28" Margin="245,14,200,0" Name="label2" VerticalAlignment="Top">Password:</Label>
        <TextBox Height="23" HorizontalAlignment="Right" Margin="0,19,41,0" Name="m_PasswordTxtBox" VerticalAlignment="Top" Width="153" TextDecorations="None" />
        <Label Height="28" HorizontalAlignment="Left" Margin="16,61,0,0" Name="label3" VerticalAlignment="Top" Width="112">Current name of PC:</Label>
        <TextBox Height="23" Margin="130,63,170,0" Name="m_CurrentPcName" VerticalAlignment="Top" />
        <Label HorizontalAlignment="Left" Margin="16,109,0,119" Name="label4" Width="85">Rename PC to:</Label>
        <TextBox Margin="104,109,157,124" Name="m_NewPcName" TextDecorations="None" />
        <Button Height="23" Margin="162,0,200,49" Name="m_RenameButton" VerticalAlignment="Bottom" Click="m_RenameButton_Click">Rename</Button>
    </Grid>
</Window>
